export interface IZi {
  h: string;
  l: string;
  v: string;
  lastPrice: string;
  change: string;
  symbol: string;
  sort: number;
  isLove: boolean;
}

export interface IMu {
  symbol: string;
  lists: Array<IZi>;
}

export interface ISelectSymbolResponse {
  code: number;
  data: Array<IMu>;
  msg: string;
}

export type ISelectSymbolRequest = undefined;

export interface IQuerySymbol {
  zi: string;
  mu: string;
}

export interface IAddOrderResponse {
  code: number;
  data: any;
  msg: string;
}

export interface IOrderType {
  label: string;
  val: string;
  key: string;
}

export interface IAddOrderRequest {
  price: string;
  uid: string;
  zi: string;
  mu: string;
  type: "sell" | "buy"; // sell | buy
  amount: string;
}

export interface ISelectOrderRequest {
  uid: string;
  zi: string;
  mu: string;
}

export interface ISelectOrderResponse {
  code: number;
  data: any;
  msg: string;
}

export interface IDelOrderResponse {
  code: number;
  data: any;
  msg: string;
}

export interface IDelOrderRequest {
  id: string;
}
